﻿Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared

Public Class frmPrintViewer

    Public Sub New(reportDocument As ReportDocument, Optional ByVal refreshReport As Boolean = True)

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        CrystalReportViewer1.ReportSource = reportDocument

        If refreshReport Then
            CrystalReportViewer1.RefreshReport()
        End If


    End Sub
End Class